/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.flowable.myListenerService.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Lists;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.User;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 异常主附表Entity
 * @author 刘明星
 * @version 2020-11-19
 */
@Data
public class AbnormalProcessANDRepair extends DataEntity<AbnormalProcessANDRepair> {

	private static final long serialVersionUID = 1L;
	@ExcelField(title="设备编码", align=2, sort=1)
	private String code;		// 设备编码
	@ExcelField(title="厂", align=2, sort=2)
	private String factory;		// 厂
	@ExcelField(title="异常区域", align=2, sort=3)
	private String abnormalArea;		// 异常区域
	@ExcelField(title="异常设备", align=2, sort=4)
	private String abnormalObject;		// 异常设备
	@ExcelField(title="异常信息", align=2, sort=5)
	private String abnormalMessgae;		// 异常信息
	@ExcelField(title="异常等级", dictType="abnormal_level", align=2, sort=6)
	private String abnormalLevel;		// 异常等级
	@ExcelField(title="第一责任人", fieldType=User.class, value="firstUser.name", align=2, sort=7)
	private User firstUser;		// 第一责任人
	@ExcelField(title="工号", align=2, sort=8)
	private String userId;		// 工号
	@ExcelField(title="计划检修工时",  align=2, sort=9)
	private String overhaulPeople;		// 检修负责人员
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="完成时间", align=2, sort=10)
	private Date finishTime;		// 完成时间
	@ExcelField(title="异常处置方案", align=2, sort=12)
	private String abnormaltry;		// 异常处置方案
	@ExcelField(title="流程id", align=2, sort=13)
	private String procInsId;		// 异常处置方案
	private String formid;
//	private String processId;

	public String getRepirpeople() {
		return repirpeople;
	}

	public void setRepirpeople(String repirpeople) {
		this.repirpeople = repirpeople;
	}

	@ExcelField(title="计划检修人数", align=2, sort=14)
	private String repirpeople;

	public AbnormalProcessANDRepair() {
		super();
	}

	public AbnormalProcessANDRepair(String id){
		super(id);
	}
}